#ifndef USRLOGIN_H
#define USRLOGIN_H

#include <QWidget>
#include <QRandomGenerator>

namespace Ui {
class UsrLogin;
}

class UsrLogin : public QWidget
{
    Q_OBJECT

public:
    explicit UsrLogin(QWidget *parent = nullptr);
    ~UsrLogin();

private:
    Ui::UsrLogin *ui;
    void showEvent(QShowEvent*);
    QRect rect;
    QWidget *windowParent;
    void fnInitFormSlots();
    bool isInitialization = false;
    int lognum = 0;
    void fnAutomaticLogon();
    void fnUserLoginRequest(QJsonObject);
    void fnOpenInsidePage();

private slots:
    void onUsrLogin();
    void onTextChanged();

signals:
    void callLoginSucceeded();
};

#endif // USRLOGIN_H
